<!--
 * @Author: 张升 1562821455@qq.com
 * @Date: 2023-10-19 16:51:16
 * @LastEditors: 张升 1562821455@qq.com
 * @LastEditTime: 2023-10-19 18:07:28
 * @FilePath: \undefinedd:\myProjects\htmlDemo\test.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>进度条</title>
</head>
<style>
    body{
        margin: 60px;
    }
    .box{
        width: 318px;
        height: 10px;
        display: flex;
        align-items: center;
        position: relative;
    }
    .b1{
        height: 100%;
        background: #26C89C;
        flex-grow: 2.5;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    .b2{
        height: 100%;
        background: #FFC640;
        flex-grow: 5;
    }
    .b3{
        height: 100%;
        background: #FF7141;
        flex-grow: 2.5;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .p{
        width: 14px;
        height: 14px;
        font-size: 12px;
        line-height: 14px;
        color: #888;
        position: absolute;
        top: -16px;
    }
    .p1{
        left: 25%;
        transform: translateX(-50%);
    }
    .p2{
        left: 75%;
        transform: translateX(-50%);
    }
    .p3{
        left: 100%;
        transform: translateX(-50%);
    }
    .val{
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #888;
        position: absolute;
        left: 60%;
        top: -2px;
    }
</style>

<body>
    <div class="box">
        <div class="b1"></div>
        <div class="b2"></div>
        <div class="b3"></div>
        <div class="p p1">2.5h</div>
        <div class="p p2">7.5h</div>
        <div class="p p3">10h</div>
        <div class="val"></div>
    </div>
</body>
<script>
    const data = {
        arrList: [6,9,10,12],
        colorList: ['red','green','orange','red'],
        rationt: '分',
        value: 10.2
    }
    const computeFlexGrow = (list) => {
        
    }
</script>

</html>
